# $NetBSD: Makefile,v 1.36 2023/11/02 14:43:05 wiz Exp $

DISTNAME=	mosh-1.4.0
CATEGORIES=	net
MASTER_SITES=	https://mosh.org/

MAINTAINER=	agc@NetBSD.org
HOMEPAGE=	https://mosh.org/
COMMENT=	Remote terminal application which allows roaming
LICENSE=	gnu-gpl-v3

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake perl:run pkg-config
USE_LANGUAGES+=		c c++
USE_GCC_RUNTIME=	yes

USE_CXX_FEATURES+=	c++14

# USE_CXX_FEATURES does not affect configure phase, but is needed there
CXXFLAGS+=	-std=c++14

REPLACE_PERL+=	scripts/mosh.pl
REPLACE_PERL+=	src/tests/genbase64.pl
REPLACE_PERL+=	src/tests/hold-stdin
REPLACE_PERL+=	src/tests/print-exitstatus

TEST_TARGET=	check

.include "../../devel/protobuf/buildlink3.mk"
BUILDLINK_API_DEPENDS.zlib+=    zlib>=1.2.0.4
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/terminfo.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
